import java.util.Arrays;

import static java.util.Arrays.deepToString;

public class Test {
    public static void func(int[] array1){
        array1[0] = 100;
        System.out.println("array[0] = "+array1[0]);
    }
    public static void main(String[] args) {
        int[] array1 = new int[]{5,1,2,3};
        func(array1);
        System.out.println("array[0] = "+array1[0]);
//        int[] array2 = new int[]{0,5,8,9,};
//        array1 = array2;
//        array1[0] = 9;
//        array1[2] = 85;
//        for (int x:array1) {
//            System.out.print(x+" ");
//        }
//        System.out.println();
//        for (int x:array2) {
//            System.out.print(x+" ");
//        }

//        int[] array1 = new int[]{0,1,2,3,4};
//        System.out.println(Arrays.toString(array1));
//
//        for (int x:array1) {
//            System.out.println(x);
//        }
//
//        for (int i = 0; i < array1.length; i++) {
//            System.out.println(array1[i]);
//        }

    }
}
